package cn.xspace.wnx.entity;

import org.json.JSONObject;

import java.util.List;

/**
 * Created by Administrator on 2016/10/14 0014.
 */
public class Body {
    /**
     * img :
     * src : http://60.208.33.226/html/5adb9657154c4078bf2f31a116e1af80.html
     * summary : aa
     * title : aa
     */

    private List<NewssnapBean> newssnap;

    @Override
    public String toString() {
        return "Body{" +
                "newssnap=" + newssnap +
                '}';
    }

    public List<NewssnapBean> getNewssnap() {
        return newssnap;
    }

    public void setNewssnap(List<NewssnapBean> newssnap) {
        this.newssnap = newssnap;
    }

    public static class NewssnapBean {
        private String img;
        private String src;
        private String summary;
        private String title;


        public NewssnapBean() {

        }

        public NewssnapBean(JSONObject jsonObject) {
            title = jsonObject.optString("title");
            summary = jsonObject.optString("summary");
            img = jsonObject.optString("img");
            src = jsonObject.optString("src");
        }

        @Override
        public String toString() {

            return "NewssnapBean{" +
                    "img='" + img + '\'' +
                    ", src='" + src + '\'' +
                    ", summary='" + summary + '\'' +
                    ", title='" + title + '\'' +
                    '}';
        }

        public String getImg() {
            return img;
        }

        public void setImg(String img) {
            this.img = img;
        }

        public String getSrc() {
            return src;
        }

        public void setSrc(String src) {
            this.src = src;
        }

        public String getSummary() {
            return summary;
        }

        public void setSummary(String summary) {
            this.summary = summary;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }
    }
}
